set(libPoyke_sources CoreLoader.cpp LogMgr.cpp ThreadMgr.cpp)
set(poyke_sources Main.cpp)
set(poyke_deps Poyke)
	
if (UNIX)
	set(poyke_deps ${poyke_deps} dl)
endif(UNIX)

# libPoyke
add_library(Poyke SHARED ${libPoyke_sources})
# What to define when building a DLL
set_target_properties(Poyke PROPERTIES DEFINE_SYMBOL "I_AM_A_CORE")

# poyke executable
add_executable(poyke ${poyke_sources})
target_link_libraries(poyke ${poyke_deps})

# Install everything in one place for now (relative to CMAKE_INSTALL_PREFIX)
install(TARGETS poyke Poyke
	DESTINATION .)
